package cn.saltybe.analysis.service;

import cn.saltybe.analysis.entity.data.RentingHouse;

import java.util.List;

public interface RentingHouseService {
    public void createTable() throws Exception;
    public int insert(RentingHouse rentingHouse) throws Exception;
    public int delete(int id) throws Exception;
    public int update(RentingHouse rentingHouse) throws Exception;
    public List<RentingHouse> all() throws Exception;
    public List<RentingHouse> all(int offset) throws Exception;
    public List<RentingHouse> all(int offset, int limit) throws Exception;
    public RentingHouse get(String typeId) throws Exception;
    public RentingHouse get(int id) throws Exception;
    public List<RentingHouse> get(int[] id) throws Exception;
    public boolean has(String typeId);
    public boolean has(int id);
    public List<RentingHouse> query(String search, int offset, int limit) throws Exception;
    public int count(String search) throws Exception;
}
